﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
   public class TrangThaiPhongBUS
    {
        public List<TrangThaiPhongDTO> DanhSachTrangThaiPhong()
        {
            TrangThaiPhongDAO kq = new TrangThaiPhongDAO();
            return kq.DanhSachTrangThaiPhong();
        }
        public TrangThaiPhongDTO LayTrangThaiPhongByMaTrangThaiPhong(int maTrangThaiPhong)
        {
            TrangThaiPhongDAO kq = new TrangThaiPhongDAO();
            return kq.LayTrangThaiPhongByMaTrangThaiPhong(maTrangThaiPhong);
        }
        public Boolean ThemTrangThaiPhong(TrangThaiPhongDTO ttp)
        {
            TrangThaiPhongDAO kq = new TrangThaiPhongDAO();
            return kq.ThemTrangThaiPhong(ttp);
        }
        public Boolean CapNhatTrangThaiPhong(TrangThaiPhongDTO ttp)
        {
            TrangThaiPhongDAO kq = new TrangThaiPhongDAO();
            return kq.CapNhatTrangThaiPhong(ttp);
        }
        public Boolean XoaTrangThaiPhong(int maTrangThaiPhong)
        {
            TrangThaiPhongDAO kq = new TrangThaiPhongDAO();
            return kq.XoaTrangThaiPhong(maTrangThaiPhong);
        }
    }
}
